/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.bash.carrep.ui;

import com.vaadin.data.Item;
import com.vaadin.data.Property;
import com.vaadin.data.Property.ValueChangeEvent;
import com.vaadin.data.Property.ValueChangeListener;
import com.vaadin.ui.Table;
import com.vaadin.ui.VerticalSplitPanel;

/**
 *
 * @author bash
 */
public class MasterDetailSplit extends VerticalSplitPanel  {

    private Table table;
    private AbstractFrom form;

    public MasterDetailSplit(Table t, AbstractFrom f) {
        addStyleName("view");
        this.form = f;
        this.table = t;

        setFirstComponent(f);
        setSecondComponent(t);
        setSplitPosition(40);
    }

    public AbstractFrom getForm() {
        return form;
    }

    public void setForm(AbstractFrom form) {
        this.form = form;
    }

    public Table getTable() {
        return table;
    }

    public void setTable(Table table) {
        this.table = table;
    }

    

    
    
}
